﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true"
    CodeBehind="Service.aspx.cs" Inherits="TimKen.Web.Service" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Common/Style/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $(".nav_li").hover(function () {//鼠标放上去时候的效果
                $(this).children("a").addClass("navon"); //鼠标放上去的加上高亮
                $(this).children("div").show(); //鼠标放上去的二级栏目出来
                $(this).siblings().children("a").removeClass("navon"); //其他的高亮取消
                $(".common_search_tk").css("position", "static");
                $(".common_search_tkicon").hide();
            }, function () {//鼠标移开时候的效果
                $(this).children("a").removeClass("navon"); //鼠标移开去掉高亮
                $(this).children("div").hide(); //鼠标移开隐藏二级栏目
                $(".common_search_tk").css("position", "relative");
                $(".common_search_tkicon").show();
                $(".nav_li:eq(5)").children("a").addClass("navon"); //回到当前栏目高亮
            });
        });
        $(document).ready(function () {
            $(".help_box_top li").removeClass();
            $("#tb_1").addClass("help_box_topon");
            $(".nav_li:eq(5)").children("a").addClass("navon").parent().siblings().children("a").removeClass();
            $(".left_nav ul li:eq(0)").children("a").addClass("left_navon"); //左侧导航，当前栏目高亮	
            $(".help_box_top li").click(function () {
                var help_nu = $(this).index();
                $(".help_div ul").eq(help_nu).show().siblings().hide();

                $(this).addClass("help_box_topon").siblings().removeClass("help_box_topon");
                // $(".help_box_top li").first().addClass("help_box_topon").siblings().removeClass();
            });
        });
        window.onload = function () { for (var ii = 0; ii < document.links.length; ii++) document.links[ii].onfocus = function () { this.blur() }; $("#tb_1").trigger("click"); }	
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <div class="left_nav">
        <ul>
            <li><a href="Service.aspx">
                <%=GetLangString("Help") %></a></li>
            <li><a href="Survey.aspx">
                <%=GetLangString("MenuSurvey") %></a></li>
            <li><a href="Gift.aspx">
                <%=GetLangString("GiftInfo")%></a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
    <div class="company_news common_border">
        <ul class="common_page">
            <%= GetLangString("Currentposition") %>：<a href="Index.aspx"><%=GetLangString("MenuHome")%></a>/<a
                href="Service.aspx"><%=GetLangString("HelpManage") %></a>
        </ul>
        <div class="help_box">
            <h1>
                <%=GetLangString("Help")%></h1>
            <ul class="help_box_top">
                <%for (int i = 0; i < drcHelpClass.Count; i++)
                  {
                      System.Data.DataRow drClass = drcHelpClass[i]; 
                %>
                <li id="tb_<%=i+1%>" class="help_box_topon">
                    <%=LanguageID == 1? drClass["ClassNameCn"]:drClass["ClassNameEn"]%></li>
                <%} %>
            </ul>
            <div class="help_div">
                <%for (int i = 0; i < drcHelpClass.Count; i++)
                  {
                      System.Data.DataRow drClass = drcHelpClass[i];%>
                <ul class="help_ul" style="display: block" id="tbc_0<%=i+1%>">
                    <%System.Data.DataRowCollection drHelp = GetHelpByClass(int.Parse(drClass["ClassID"].ToString()));
                      for (int j = 0; j < drHelp.Count; j++)
                      {
                          System.Data.DataRow dr = drHelp[j]; 
                    %>
                    <h2>
                        <a name="<%=i.ToString() + j.ToString()%>"></a>
                        <%=dr["Title"]%>
                    </h2>
                    <%if (!string.IsNullOrEmpty(dr["Content"].ToString()))
                      {%>
                    <p>
                        <%=dr["Content"]%></p>
                    <%}
                      }%>
                </ul>
                <%} %>
            </div>
        </div>
    </div>
</asp:Content>
